import request from '@/utils/request';

export function fileUploadImg(file) {
  return request({
    url: '/system/file/upload',
    method: 'post',
    data: file
  })
}

export function fileUpload(file) {
  const files = new FormData();
  files.append('file', file.file);
  return request({
    url: '/system/file/upload',
    method: 'post',
    data: files
  })
}

export function fileGetUrl(id) {
  return request({
    url: `/system/file/${id}`,
    method: 'get'
  })
}
// 根据fileId 删除文件
// export function deleteFileSystem(fileId) {
//   return request({
//     url: `/system/fileMinio/minioDelete/${fileId}`,
//     method: 'get'
//   })
// }
